﻿using System.Windows.Forms;

namespace EFMLEditor.DockingForms
{
    using System.Diagnostics;

    using Creek.UI.Metro.Forms;

    using EFMLEditor.Internal;

    public partial class Explorer : Form
    {
        public Explorer()
        {
            InitializeComponent();

            Application.Load += ApplicationOnLoad;
        }

        private void ApplicationOnLoad(TreeNode treeNode)
        {
            treeView1.Nodes.Clear();
            treeNode.ContextMenuStrip = contextMenuStrip1;
            treeView1.Nodes.Add(treeNode);
        }

        private void openFolderInWindowsExplorerToolStripMenuItem_Click(object sender, System.EventArgs e)
        {
            Process.Start(Global.Get("project_path"));
        }
    }
}
